# -*- coding: utf-8 -*-
# @File     : mainPage.py.py
# @Project  : letCodeCase
# @Author   : 熊剑文
# @Time     : 2024/9/5 10:52:39
# @Copyright: 江西博微新技术有限公司
from common.basePage import BasePage
from configs.env import Env
from pageObjects.inputPage import InputPage
"""
模块描述：
    
"""
class MainPage(BasePage):

    def open_webpage(self, url=Env.LOGIN_URL):
        self.open_url(url)
        return self  # 实现了链式调用

    def goto_inputpage(self):
        self.click_element(self.edit_button)
        return InputPage()

if __name__ == '__main__':
    main_page = MainPage()
    m = main_page.open_webpage()
    m.goto_inputpage()
